    <?php
        echo $this->action('header', 'index', 'index');
    ?>
    <div id="body">
        <div class="content">
            <?php
                echo $this->action('left', 'index', 'index');
            ?>
            <br><br><br>
            <div id="right_content">
                <div class="block">

                <form name="yourCartForm" id="yourCartForm" action="<?=$this->linkPost?>" method="post">
<?php
$yourCart = $this->yourcart;
$amount = $this->amount;

if (count($yourCart) > 0 ) {
?>

<div class="block">
	<div class="header">
		<div><?=$this->translate->_('swagtag_shoppingcart_title')?></div>
	</div>
	<div class="blockcontent">		
		<a style="text-align: left;" class="shop_center" href="<?=$this->baseUrl?>/shop"><?=$this->translate->_('tieptucmuahang')?></a>
		<a class="shop_center" href="<?=$this->baseUrl?>/shop/order"><?=$this->translate->_('dathang')?></a>
		
		sdsdf
		
     
        <div>
          <div style="height:10px;"></div><div class="shop_viewcart_sp"><?=$this->translate->_('tensanpham')?></div>
          <div class="shop_viewcart_dg"><?=$this->translate->_('dongia')?>(USD)</div>
          <div class="shop_viewcart_tt"><?=$this->translate->_('thanhtien')?> </div>
          <div class="shop_viewcart_sl"><?=$this->translate->_('soluong')?></div>
          <div style=" clear:both;"></div>
        </div>  
        dsfs
          
          
          
          <div style=" background:#75A0FD; height:1px;"></div>
			<?php
			    $sum = 0;
			    $stt = 1;
			    $bgcolor = array('#FFFFFF', '#EFEFEF');
			    $strItem = "";
			    $i = 0;
			    foreach ($yourCart as $item):
					$price = $item->item_price; 
				    	
			        $strItem .= ($i++ >0 ? ",":"") . $item->item_id;
			        
                    $path = pathinfo($item->item_image, PATHINFO_DIRNAME);
                    $fileName = pathinfo($item->item_image, PATHINFO_BASENAME);
			        
			?>
			        <!--<div style=" background:#999999; height:1px;"></div>-->
			        <div class="div-clear"></div>
			        <div style="height:150px;">
			            <div class="shop_viewcart_ha1" ><a href="<?=BASE_URL?>/shop/detail/itemid/<?=$item->item_id?>">
			                <img border="1" style="max-width: 85px; max-height: 85px; border: 1px dotted #CCCCCC" id="<?=$item->item_id?>" src="<?=ImageUtil::getImage($path,$fileName,85,85, 100,false)?>" /></a>			                
			            </div>
			            <div class="shop_viewcart_tensp">
			                <a class="shop_center" href="<?=BASE_URL?>/shop/detail/itemid/<?=$item->item_id?>">
			                	<?=$item->item_title?>
			                </a>
			            </div>
			            
			            <div class="shop_viewcart_dg1">
			                <?php 
			                	//echo number_format($price,$currencyDecimalPlaces,$currencyDecimalPoint,$currencyThousandsPoint).' '.$currentCurrency;
			                	echo $price;
			               ?>
			            </div>
			            <div class="shop_viewcart_tt1">
			                <?= $price?>
			                <?php
			                    $sum += $price * $amount['' . $item->item_id];
			                ?>
			            </div>
			            
			            <div class="shop_viewcart_sl1" >
			                <?=$this->formText('amount' . $item->item_id, $amount['' . $item->item_id], array('style' => 'width:40px;', 'maxlength' => '5', 'onchange' => "javascript:checkNumber(this);", 'onkeyup' => "javascript:checkNumber(this);"))?>
			            </div>
			            <div class="shop_viewcart_sl1" >
			            	<input type="submit" class="currency_convert_button" value="<?=$this->translate->_('submit')?>">
			            </div>
			            <div class="shop_viewcart_sl1" >
			            	<a href="javascript:deleteItemFromYourCart(<?=$item->item_id?>);"><?=$this->translate->_('huy')?></a>
			            </div>
			            
			            
			        </div>
			        <div class="div-clear"></div>
			<?php
			    endforeach;
			//    echo $this->formHidden('items', $strItem, array('size' => 10));   
			?>
			    
			    <input type="hidden" value="<?=$strItem?>" name="items">
			    <input type="submit" class="currency_convert_button" value="<?=$this->translate->_('submit')?>">
			<div class="shop_viewcart_tc"><?=$this->translate->_('sum_price')?> : <?=$sum?></div>
			<?php
			} // if count > 0
			 ?>
			<div class="div-clear"></div>			
			<!-- the end thong tin sp-->
			<div class="div-clear"></div>
		
	</div>
</div>
<div class="blockcontent">		
		<a style="text-align: left;" class="shop_center" href="<?=BASE_URL?>/shop"><?=$this->translate->_('tieptucmuahang')?></a>
		<a class="shop_center" href="<?=BASE_URL?>/shop/order"><?=$this->translate->_('dathang')?></a>
	</div>
<div style="clear: both;"></div>

</form>



                </div>
                <div style="clear: both;"></div>
            </div>
            
        </div>
    </div>
